package dk.almbrand.microservice.util;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

import java.util.Properties;

public class PropertyUtils {

    private static Properties properties = new Properties();

    // Force load of property file on application startup
    static {
        try {
            InputStream input = new FileInputStream("config.properties");
            properties.load(input);
        } catch (Exception e) {
        }
    }

    public static String getProperty(String property) {
        return properties.getProperty(property);
    }
}
